home *** CD-ROM | disk | FTP | other *** search
- import com.supercede.beans.stdawt.TextAreaSB;
- import com.supercede.forms.SuperCedeFrame;
- import com.supercede.forms.SuperCedeInvalidStateException;
- import java.awt.Button;
- import java.awt.Container;
- import java.awt.Frame;
- import java.awt.TextField;
- import java.awt.event.ActionEvent;
- import java.awt.event.WindowEvent;
- import java.io.IOException;
- import java.io.Serializable;
- import java.util.Vector;
-
- public class Form1 extends SuperCedeFrame implements Serializable {
- TextField inputField;
- Button addButton;
- Button clearButton;
- TextAreaSB myTextArea;
-
- public void form1WindowClosing(WindowEvent var1) {
- ((Frame)this).dispose();
- }
-
- public void form1WindowClosed(WindowEvent var1) {
- this.SuperCedeWindowClosed();
- }
-
- public void inputFieldActionPerformed(ActionEvent var1) {
- this.myTextArea.append(this.inputField.getText() + "\n");
- this.inputField.selectAll();
- this.inputField.requestFocus();
- }
-
- public void addButtonActionPerformed(ActionEvent var1) {
- this.myTextArea.append(this.inputField.getText() + "\n");
- this.inputField.selectAll();
- this.inputField.requestFocus();
- }
-
- public void clearButtonActionPerformed(ActionEvent var1) {
- this.myTextArea.setText("");
- this.inputField.requestFocus();
- }
-
- public Form1() throws IOException, ClassNotFoundException, ClassCastException, SuperCedeInvalidStateException {
- this.SuperCedeConstructor();
- }
-
- public static void main(String[] var0) {
- try {
- Form1 var1 = new Form1();
- ((SuperCedeFrame)var1).setVisible(true);
- } catch (Throwable var2) {
- System.out.println("Cannot construct the form: " + var2);
- System.exit(1);
- }
-
- }
-
- private void SuperCedeConstructor() throws IOException, ClassNotFoundException, ClassCastException, SuperCedeInvalidStateException {
- Vector var1 = new Vector(5);
- var1.addElement(new Form1WindowClosingConnector0());
- var1.addElement(new Form1WindowClosedConnector1());
- var1.addElement(new Form1EventConnector3());
- var1.addElement(new Form1EventConnector4());
- var1.addElement(new Form1EventConnector5());
- super.initializeThis(var1);
- int var2 = 0;
- int var5 = var2++;
- this.inputField = (TextField)((Container)this).getComponent(var5);
- int var8 = var2++;
- this.addButton = (Button)((Container)this).getComponent(var8);
- int var11 = var2++;
- this.clearButton = (Button)((Container)this).getComponent(var11);
- int var14 = var2++;
- this.myTextArea = (TextAreaSB)((Container)this).getComponent(var14);
- }
-
- private void SuperCedeWindowClosed() {
- System.exit(0);
- }
- }
-